//
//  webViewController.m
//  HGameSDK
//
//  Created by K on 2019/1/11.
//  Copyright © 2019 K. All rights reserved.
//

#import "Kraots_webViewController.h"
#import <WebKit/WebKit.h>
@interface Kraots_webViewController () <WKNavigationDelegate,WKUIDelegate>
@property (nonnull,strong,nonatomic) WKWebView *wkwebView;

@end

@implementation Kraots_webViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}


-(WKWebView *)wkwebView
{
    if (_wkwebView == nil) {
        WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];
        _wkwebView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:configuration];
        _wkwebView.navigationDelegate = self;
        _wkwebView.UIDelegate = self;
    }
    return _wkwebView;
}

- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler
{
    
}



@end
